#ifndef JBK_THREAD_THREAD_H
#define JBK_THREAD_THREAD_H

#include <pthread.h>

class Thread {
public:
	/* dtor */
	virtual ~Thread() {};

	/* start */
	void start();

	/* run */
	virtual void run() = 0;

	/* join */
	void join();
private:
	pthread_t _id; /* id */

	static void* _threadCreateHelper(void* threadPointer); /* thread create helper */
};

#endif // JBK_THREAD_THREAD_H

